package com.kang.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.kang.dao.ItemsStorageStatisticsMapper;
import com.kang.service.ItemsStorageStatisticsService;
import com.vonechina.entity.page.ItemsStorageStatisticsPage;

/**
 * 物品入库统计
 * 
 * @author ysq
 *
 */
@Service
public class ItemsStorageStatisticsServiceImpl implements
		ItemsStorageStatisticsService {
	/**
	 * 物品入库统计
	 */
	@Resource
	private ItemsStorageStatisticsMapper issm;

	/**
	 * 查询普通入库统计
	 */
	@Override
	public List<Map<String, String>> selectGeneralstorageList(
			ItemsStorageStatisticsPage itemsStorageStatisticsPage) {
		// 查询普通入库统计总条数
		itemsStorageStatisticsPage.setRows(issm
				.selectGeneralstorageListSum(itemsStorageStatisticsPage));
		// 查询普通入库统计
		return issm.selectGeneralstorageList(itemsStorageStatisticsPage);
	}

	/**
	 * 查询采购入库统计
	 */
	@Override
	public List<Map<String, String>> selectWarehouseorderList(
			ItemsStorageStatisticsPage itemsStorageStatisticsPage) {
		// 查询采购入库统计总条数
		itemsStorageStatisticsPage.setRows(issm
				.selectWarehouseorderListSum(itemsStorageStatisticsPage));
		// 查询采购入库统计
		return issm.selectWarehouseorderList(itemsStorageStatisticsPage);
	}

	/**
	 * 查询物品采购统计
	 */
	@Override
	public List<Map<String, String>> apsselectByWhere(
			ItemsStorageStatisticsPage itemsStorageStatisticsPage) {
		// 查询物品采购统计总条数
		itemsStorageStatisticsPage.setRows(issm
				.apsselectByWhereSum(itemsStorageStatisticsPage));
		// 查询物品采购统计
		return issm.apsselectByWhere(itemsStorageStatisticsPage);
	}

	/**
	 * 物品领用统计表
	 */
	@Override
	public List<Map<String, String>> pickingSelectByWhere(
			ItemsStorageStatisticsPage itemsStorageStatisticsPage) {
		// 查询物品领用统计表总条数
		itemsStorageStatisticsPage.setRows(issm
				.pickingSelectByWhereSum(itemsStorageStatisticsPage));
		// 查询物品领用统计表
		return issm.pickingSelectByWhere(itemsStorageStatisticsPage);
	}

	/**
	 * 物品退货统计表
	 */
	@Override
	public List<Map<String, String>> returnorderSelectByWhere(
			ItemsStorageStatisticsPage itemsStorageStatisticsPage) {
		// 查询物品退货统计表总条数
		itemsStorageStatisticsPage.setRows(issm
				.returnorderSelectByWhereSum(itemsStorageStatisticsPage));
		// 查询物品退货统计表
		return issm.returnorderSelectByWhere(itemsStorageStatisticsPage);
	}

}
